<ul class="ui-tabs-nav">
{loop $data $n $r}
{if $n == 1}
<li class="ui-tabs-nav-item  ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1">1</a></li>
{else}
 <li class="ui-tabs-nav-item  ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-$1++">$1++</a></li>

  {/if} {/loop}</ul>

{loop $data $n $r}
{if $n == 1}

<div id="fragment-1" class="ui-tabs-panel">
<a href="{$r[url]}"><img src="{thumb($r[thumb]}"></a><a href="{$r[url]}">{str_replace('"',"'",$r[title])}</a></div>
<div class="info" ><a href="{$r[url]}">{str_replace('"',"'",$r[title])}</a></div>
{else}
<div id="fragment-$1++" class="ui-tabs-panel">
<a href="{$r[url]}"><img src="{thumb($r[thumb]}"></a><a href="{$r[url]}">{str_replace('"',"'",$r[title])}</a></div>
<div class="info" ><a href="{$r[url]}">{str_replace('"',"'",$r[title])}</a></div>
  {/if}
{/loop}
